/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package practicasUnidad1;

/**
 *
 * @author Lab
 */


/**
 *
 * @author Lab
 */
import java.util.*;
public class Mayor {

    /**
     * @param args the command line arguments
     */
    static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) {

        int a, b, c, d, max, min;
        System.out.println("introduce un puño de valores");
        System.out.println("a");
        a=sc.nextInt();
        System.out.println("b");
        b=sc.nextInt();
        System.out.println("c");
        c=sc.nextInt();
        System.out.println("d");
        d=sc.nextInt();
        max=Math.max(a, b);
        max=Math.max(max, c);
        max=Math.max(max, d);
        System.out.println("el mayor es:"+max);

        min=Math.min(a, b);
        min=Math.min(min, c);
        min=Math.min(min, d);
        System.out.println("el minimo es:"+min);
    }

}


